module.exports = {
    publicPath: '/',
    assetsDir: 'static',
    outputDir: 'polymerize',
    devServer: {
        open: false,
        https: false,
        hotOnly: true,
        host: '0.0.0.0',
        port: process.env.PORT,
        proxy: {
            [`^${process.env.API}`]: {
                ws: true,
                secure: false,
                logLevel: 'debug',
                changeOrigin: true,
                target: process.env.TARGET,
                pathRewrite: {
                    [`^${process.env.API}`]: ''
                }
            }
        }
    },
    runtimeCompiler: true,
    productionSourceMap: false,
    configureWebpack: {
        name: process.env.TITLE
    },
    css: {
        extract: false,
        sourceMap: false,
        requireModuleExtension: false
    },
    pluginOptions: {
        'style-resources-loader': {
            patterns: [],
            preProcessor: 'scss'
        }
    },
    chainWebpack: config => config.resolve.symlinks(true)
}
